//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Windows;

namespace OpenLS.Spreadsheet.UI
{
    class ExternalDragEventArgs: BaseDragEventArgs
    {
        public ExternalDragEventArgs(DragEventArgs inner)
        {
            this.inner = inner;
        }
        public  override object GetData(string format)
        {
            return inner.Data.GetData(format);
        }
        public override bool Handled
        {
            get
            {
                return inner.Handled;
            }
            set
            {
                //base.Handled = value;
                inner.Handled = value;
            }
        }
        public  override Point GetPosition(IInputElement relativeTo)
        {
            return inner.GetPosition(relativeTo);
        }
        public override DragDropEffects Effects
        {
            get { return inner.Effects; }
            set{ inner.Effects = value;}
        }

        private readonly DragEventArgs inner;

        public override bool GetDataPresent(string format)
        {
            return inner.Data.GetDataPresent(format);
        }

        public override DragDropEffects AllowedEffects
        {
            get { return inner.AllowedEffects; }
        }

        public override DragDropKeyStates KeyStates
        {
            get { return inner.KeyStates; }
        }
    }
}
